﻿using System;

namespace IceCS.DesignPattern.Core.ObserverPattern.NumberChange
{
    public class OctalObserver : Observer
    {
        public OctalObserver()
        {

        }
        public OctalObserver(Subject subject)
        {
            subject.AddObserver(this);
        }

        public override void Update()
        {
            Console.WriteLine($"Octal  String: {Convert.ToString(Subject.State, 8)}");
        }
    }
}
